package com.midou.administration.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.midou.administration.bo.ClerkSelectBo;
import com.midou.administration.entity.Clerk;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.checkerframework.checker.units.qual.C;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */
public interface ClerkMapper extends BaseMapper<Clerk> {
  /* 员工登录 */
  Clerk clerkLogin(@Param("clerk_account_number")String clerk_account_number ,
                   @Param("clerk_password") String clerk_password);

  List<ClerkSelectBo> all(@Param("page")Page page,@Param("id")Integer id);
  List<ClerkSelectBo> selectId(@Param("id")Integer id);
  int updaClerk(@Param("clerk")ClerkSelectBo clerk);
  int queryUpwd(@Param("clerk")ClerkSelectBo clerkSelectBo);

  List<ClerkSelectBo> chaCf(@Param("clerk")Clerk clerk);
}
